package moodish.client.gui.listener;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import moodish.client.gui.MoodishClientGui;

public class RepaintListener implements MouseListener {

	private MoodishClientGui gui;
	public RepaintListener(MoodishClientGui gui){
		this.gui = gui;
	}
	@Override
	public void mouseClicked(MouseEvent e) {
		gui.getFrame().validate();
		gui.getFrame().repaint();
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		gui.getFrame().validate();
		gui.getFrame().repaint();
	}

	@Override
	public void mouseExited(MouseEvent e) {
		gui.getFrame().validate();
		gui.getFrame().repaint();
	}

	@Override
	public void mousePressed(MouseEvent e) {
		gui.getFrame().validate();
		gui.getFrame().repaint();
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		gui.getFrame().validate();
		gui.getFrame().repaint();
	}
}
